package cn.task.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import cn.task.mapper.TaskmangerCustomMapper;
import cn.task.mapper.TaskmangerMapper;
import cn.task.po.Taskmanger;
import cn.task.po.TaskmangerExample;
import cn.task.service.TaskMangerService;

public class TaskMangerServiceImpl implements TaskMangerService {
	@Autowired
	private TaskmangerMapper taskmangerMapper;
	@Autowired
	private TaskmangerCustomMapper taskmangerCustomMapper;
	@Override
	public void insertRecord(Taskmanger record) {
		// TODO Auto-generated method stub
		taskmangerMapper.insertSelective(record);
	}
	@Override
	public Taskmanger selectByAccount(String account) {
		return taskmangerMapper.selectByPrimaryKey(account);
	}
	@Override
	public void updateRecord(Taskmanger record) {
		taskmangerMapper.updateByPrimaryKeySelective(record);
	}
	@Override
	public List<Taskmanger> selectAll() {
		return taskmangerCustomMapper.selectAll();
	}

}
